//
//  vechileDetailCell.m
//  WHB_cargo
//
//  Created by 徐国庆 on 15/12/11.
//  Copyright (c) 2015年 turing. All rights reserved.
//

#import "vechileDetailCell.h"

@implementation vechileDetailCell

- (void)awakeFromNib {
    // Initialization code
    
    // “当前地址”下面的"线"
    self.currentAddressBottomLineLabel = [[UILabel alloc] init];
//    self.currentAddressBottomLineLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, self.currentAddressVeiw.frame.origin.y + self.currentAddressVeiw.frame.size.height + 10, self.contentView.frame.size.width, 0.5)];
    [self.contentView addSubview:self.currentAddressBottomLineLabel];
    
    // “订单成交”
    self.orderTurnoverButton = [UIButton buttonWithType:UIButtonTypeCustom];
    self.orderTurnoverButton.frame = CGRectMake(20, 250, (self.contentView.frame.size.width - 220) / 2, 40);
    self.orderTurnoverButton.layer.masksToBounds = YES;
    self.orderTurnoverButton.layer.cornerRadius = 5;
    self.orderTurnoverButton.titleLabel.font = [UIFont systemFontOfSize:15];
    [self.orderTurnoverButton setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
    [self.orderTurnoverButton setTitle:@"订单成交" forState:UIControlStateNormal];
    [self.contentView addSubview:self.orderTurnoverButton];
    NSLog(@"self.contentView.frame.size.width == %f", self.contentView.frame.size.height);
    
    // "拨打电话"
    self.callingButton = [UIButton buttonWithType:UIButtonTypeCustom];
    self.callingButton.frame = CGRectMake(40 + (self.contentView.frame.size.width - 220) / 2, 250, (self.contentView.frame.size.width - 220) / 2, 40);
    self.callingButton.layer.masksToBounds = YES;
    self.callingButton.layer.cornerRadius = 5;
    self.callingButton.titleLabel.font = [UIFont systemFontOfSize:15];
    [self.callingButton setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
    [self.callingButton setTitle:@"拨打电话" forState:UIControlStateNormal];
    [self.contentView addSubview:self.callingButton];
    
    
    self.lastBottomLineLabel.text = @"";
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
